	<div class= "sm-box"> 
			<a href="<?php echo site_url('developer/add_app_step_1')?>" class= "button green" >Thêm mới</a>
	</div>
<div class="box grid_12">
	<div class="box-head">
		<h2>Applications</h2>
	</div>

	<div class="box-content no-pad">
		<table class="display" id="example">
			<thead>
				<tr>
					<th width="13">STT</th>
					<th>Type</th>
					<th>Category</th>
					<th>Name</th>
					<th>Coins</th>
					<th>Status</th>
					<th>Ngày</th>
				</tr>
			</thead>
			<tbody>
				<?php if($list_app <> null):?>
				<?php $i = 0;?>
				<?php foreach($list_app as $app):?>
				<tr class="odd gradeX">
					<td class="center"><?php $i++; echo $i; ?></td>
					<td class="center"><?php foreach($alltype as $type):?>
                                    		 <?php if($type->id == $app->typeid):?><?php echo $type->nametype; break;?> <?php endif;?> 
                                    	<?php endforeach;?>  </td>
					<td class="center"><?php foreach($allcate as $cate):?>
                                    		 <?php if($cate->id == $app->cateid):?><?php echo $cate->catename; break;?> <?php endif;?> 
                                    	<?php endforeach;?>  </td>					
					<td><a href="<?php echo site_url('developer/edit_app/'.$app->id);?>"><?php echo $app->namecontent;?></a></td>
					<td><?php echo $app->coins;?></td>
					<td><?php echo $app->active;?></td>
					<td><?php echo $app->datecreated?></td>					
				</tr>
				<?php endforeach; ?>
				<?php endif;?>
			</tbody>
		</table>
	</div>

	<div class="footer"></div>
</div>

